package com.fimuz.mqmeet.api.region.service.impl;

import java.util.Date;
import java.util.UUID;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.fimuz.mqmeet.api.region.dao.RegionDao;
import com.fimuz.mqmeet.api.region.service.RegionService;
import com.fosun.spr.core.base.CoBaseService;
import com.fosun.spr.core.utils.ExtAsserts;
import com.fimuz.mqmeet.api.region.service.model.ListSpModel;
import com.fimuz.mqmeet.api.region.service.model.ListSrModel;
import com.fimuz.mqmeet.api.region.service.model.CreateOrUpdateSpModel;
import com.fimuz.mqmeet.api.region.service.model.CreateOrUpdateSrModel;
import com.fimuz.mqmeet.api.region.service.model.DeleteSpModel;
import com.fimuz.mqmeet.api.region.service.model.DeleteSrModel;
import com.fimuz.mqmeet.api.region.service.model.GetSpModel;
import com.fimuz.mqmeet.api.region.service.model.GetSrModel;

@Transactional(rollbackFor = { RuntimeException.class, Exception.class })
@Service
public class RegionServiceImpl extends CoBaseService implements RegionService {
	@Resource
	private RegionDao regionDao;
	//@Resource
	//private RegionMapper regionMapper;
 
	@Override
	public ListSrModel list(ListSpModel spModel) {
		ListSrModel srModel = new ListSrModel();
		srModel.setDatas(regionDao.list(spModel));
		srModel.setTotalCount(regionDao.listCount(spModel));
		return srModel;
	}	
	@Override
	public CreateOrUpdateSrModel createOrUpdate(CreateOrUpdateSpModel spModel) {
		CreateOrUpdateSrModel srModel = new CreateOrUpdateSrModel();
		return srModel;
	}	
	@Override
	public DeleteSrModel delete(DeleteSpModel spModel) {
		DeleteSrModel srModel = new DeleteSrModel();
		return srModel;
	}	
	@Override
	public GetSrModel get(GetSpModel spModel) {
		GetSrModel srModel = new GetSrModel();
		return srModel;
	}	
	
}
